package com.yunshang.ys.ys;

import com.google.gson.annotations.SerializedName;

/**
 * Created by Vone (codeofshield@gmail.com) on 2016/8/7.
 */
public class YSHttpResult<T> {

    @SerializedName("success")
    private boolean code;
    @SerializedName("errorMsg")
    private String msg;
    @SerializedName("result")
    T data;

    public boolean isCode() {
        return code;
    }

    public void setCode(boolean code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
